# Replication materials for "When Does Accommodation Work? Electoral Effects of Mainstream Left Position-Taking on Immigration"

## Frederik Hjorth and Martin Vinæs Larsen

This repo contains the following files:

- accomodation-repdata.rds : R data file containing the replication data for all the analyses in the manuscript.
- helperfunctions.R : R script with two helperfunctions used to plot quantities of interest.
- main.R : R script reproducing all figures and key quantities in the manuscript.
- appendix.R : R script reproducing figures and tables in the online appendix.

The file 'accomodation-repdata.rds' contains the following variables, 14 in total:

- sdimmpos: Perception of Social Democrats position on immigration
- sdptv-nbptv: Propensity to vote (PTV) for selected parties
- maxlbptv: Maximum PTV across the left bloc parties
- expcondition: Factor variable for experimental condition
- expcondition_refadv: Factor variable for experimental condition with 'Adversarial' as the reference category
- gender: Factor variable for respondent gender
- education: Factor variable for respondent education
- occupation: Factor variable for respondent occupation
- agegrp: Factor variable for respondent age group
- att_imm1-att_imm2: Individual items measuring immigration attitudes
- antiimm: Additive index based on att_imm1 and att_imm2
- partygroup15: Factor variable for respondent's self-reported vote choice in the 2015 election, organized by party group
